                        <div class="contentcontainer">
                            <div class="main">
                                <h3 class="title"><?=$clabel?> &raquo; <?=$mlabel?></h3>
                                <div class="formdiv">
                                    <form method="POST" id="frmViewMenuGroup" action="<?=base_url($dgdata['actions']['edit'])?>">
                                        <table>
                                            <? if( isset($errors) ) {
                                               foreach($errors as $error) {
                                               ?>
                                            <tr>
                                                <td class="errormsg" colspan="3">
                                                    <?=$error?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  ?>
                                            <? if( isset($successes) ) {
                                               foreach($successes as $success) {
                                               ?>
                                            <tr>
                                                <td class="successmsg" colspan="3">
                                                    <?=$success?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  
                                            if( isset($mgid) && $mgid != "" ) {
                                            ?>
                                            <tr>
                                                <td><label for="mglabel">Menu Group Label*</label></td>
                                                <td>
                                                    <input type="hidden" name="mgid" value="<?=$mgid?>"/>
                                                    <div class="text"><?=$mglabel?></div>
                                                </td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td><label for="mgurl">Menu Url*</label></td>
                                                <td>
                                                    <div class="text"><?=$mgurl?></div>
                                                </td>
                                                <td></td>
                                            </tr>
                                        	<tr>
                                                <td><label for="mgposition">Position*</label></td>
                                                <td>
                                                    <div class="text"><?=$mgposition?></div>
                                                </td>
                                                <td></td>
                                            </tr>
                                        	<tr>
                                        		<td></td>
                                        		<td colspan="2">
                                                    <input class="button" type="submit" name="btnEditMenuGroup" value="Edit" id="btnEditMenuGroup" />
                                                </td>
                                        	</tr>
                                            <?
                                            }
                                            ?>
                                        </table>
                                	</form>
                                 </div>
                                <?
                                    //print_object($mgdata); exit;
                                  if(isset($dgdata)) 
        						  $this->load->view('elements/datagrid',$dgdata);
        						?>   
                            </div>
                        </div>            